import request from '@/utils/request'

// 查询人工考勤列表
export function listRgAttend(query) {
  return request({
    url: '/hr/rgAttend/list',
    method: 'get',
    params: query
  })
}

// 查询人工考勤详细
export function getRgAttend(id) {
  return request({
    url: '/hr/rgAttend/' + id,
    method: 'get'
  })
}
// 新增人工考勤
export function addRgAttend(data) {
  return request({
    url: '/hr/rgAttend',
    method: 'post',
    data: data
  })
}

// 修改人工考勤
export function updateRgAttend(data) {
  return request({
    url: '/hr/rgAttend',
    method: 'put',
    data: data
  })
}
// 修改人工考勤
export function editById(data) {
  return request({
    url: '/hr/rgAttend/editById',
    method: 'put',
    data: data
  })
}

// 删除人工考勤
export function delRgAttend(id) {
  return request({
    url: '/hr/rgAttend/' + id,
    method: 'delete'
  })
}
// 删除人工考勤
export function deleteNcAttendRgByIdentyCode(id) {
  return request({
    url: '/hr/rgAttend/deleteNcAttendRgByIdentyCode/' + id,
    method: 'delete'
  })
}
